home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / msvccom.mak < prev    next >
Encoding:
Text File  |  1997-06-20  |  5.8 KB  |  241 lines

  1. #    Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # msvccom.mak
  16. # Common makefile section for Microsoft Visual C++ 4.1,
  17. # Windows NT or Windows 95 platform.
  18. # Created 1997-05-22 by L. Peter Deutsch from msvc4/5 makefiles.
  19.  
  20. # Define the current directory prefix and shell invocations.
  21.  
  22. D=\#
  23.  
  24. EXPP=
  25. SH=
  26. SHP=
  27.  
  28. # Define the arguments for genconf.
  29.  
  30. CONFILES=-p %%s -o $(ld_tr) -l lib.tr
  31.  
  32. # Define the generic compilation flags.
  33.  
  34. PLATOPT=
  35.  
  36. INTASM=
  37. PCFBASM=
  38.  
  39. # Make sure we get the right default target for make.
  40.  
  41. dosdefault: default
  42.  
  43. # Define the compilation flags.
  44.  
  45. !if "$(CPU)"=="i386"
  46. !if $(CPU_TYPE)>500
  47. CPFLAGS=/G5 /QI0f
  48. !else if $(CPU_TYPE)>400
  49. CPFLAGS=/GB /QI0f
  50. !else
  51. CPFLAGS=/GB /QI0f
  52. !endif
  53.  
  54. !if $(FPU_TYPE)>0
  55. FPFLAGS=/FPi87
  56. !else
  57. FPFLAGS=
  58. !endif
  59. !endif
  60.  
  61. !if "$(CPU)"=="ppc"
  62. !if $(CPU_TYPE)>=620
  63. CPFLAGS=/QP620
  64. !else if $(CPU_TYPE)>=604
  65. CPFLAGS=/QP604
  66. !else
  67. CPFLAGS=/QP601
  68. !endif
  69.  
  70. FPFLAGS=
  71. !endif
  72.  
  73. !if "$(CPU)"=="alpha"
  74. # *** alpha *** This needs fixing
  75. CPFLAGS=
  76. FPFLAGS=
  77. !endif
  78.  
  79. !if $(NOPRIVATE)!=0
  80. CP=/DNOPRIVATE
  81. !else
  82. CP=
  83. !endif
  84.  
  85. !if $(DEBUG)!=0
  86. CD=/DDEBUG
  87. !else
  88. CD=
  89. !endif
  90.  
  91. !if $(TDEBUG)!=0
  92. CT=/Zi /Od
  93. LCT=/DEBUG $(LINK_LIB_SWITCH)
  94. COMPILE_FULL_OPTIMIZED=    # no optimization when debugging
  95. COMPILE_WITH_FRAMES=    # no optimization when debugging
  96. COMPILE_WITHOUT_FRAMES=    # no optimization when debugging
  97. !else
  98. CT=
  99. LCT=$(LINK_LIB_SWITCH)
  100. COMPILE_FULL_OPTIMIZED=/O2
  101. COMPILE_WITH_FRAMES=
  102. COMPILE_WITHOUT_FRAMES=/Oy
  103. !endif
  104.  
  105. !if $(DEBUG)!=0 || $(TDEBUG)!=0
  106. CS=/Ge
  107. !else
  108. CS=/Gs
  109. !endif
  110.  
  111. # Specify output object name
  112. CCOBJNAME=-Fo
  113.  
  114. # Specify function prolog type
  115. COMPILE_FOR_DLL=
  116. COMPILE_FOR_EXE=
  117. COMPILE_FOR_CONSOLE_EXE=
  118.  
  119.  
  120. GENOPT=$(CP) $(CD) $(CT) $(CS) /W2 /nologo
  121.  
  122. CCFLAGS=$(PLATOPT) $(FPFLAGS) $(CPFLAGS) $(CFLAGS) $(XCFLAGS)
  123. CC=$(COMP) /c $(CCFLAGS) @ccf32.tr
  124. CPP=$(COMPCPP) /c $(CCFLAGS) @ccf32.tr
  125. !if $(MAKEDLL)
  126. WX=$(COMPILE_FOR_DLL)
  127. !else
  128. WX=$(COMPILE_FOR_EXE)
  129. !endif
  130. CCC=$(CC) $(WX) $(COMPILE_FULL_OPTIMIZED)
  131. CCD=$(CC) $(WX) $(COMPILE_WITH_FRAMES)
  132. CCINT=$(CCC)
  133. CCCF=$(CCC)
  134. CCLEAF=$(CCC) $(COMPILE_WITHOUT_FRAMES)
  135.  
  136. # Compiler for auxilliary programs
  137.  
  138. CCAUX=$(COMPAUX) /I$(INCDIR) /O
  139.  
  140.  
  141. # Define the generic compilation rules.
  142.  
  143. .c.obj:
  144.     $(CCC) $<
  145.  
  146. .cpp.obj:
  147.     $(CPP) $<
  148.  
  149. # Define the files to be removed by `make clean'.
  150. # nmake expands macros when encountered, not when used,
  151. # so this must precede the !include statements.
  152.  
  153. BEGINFILES2=gsdll32.exp gsdll32.ilk gsdll32.pdb gsdll32.lib\
  154.    gswin32.exp gswin32.ilk gswin32.pdb gswin32.lib\
  155.    gswin32c.exp gswin32c.ilk gswin32c.pdb gswin32c.lib
  156.  
  157.  
  158. # Include the generic makefiles.
  159.  
  160. !include wincom.mak
  161.  
  162.  
  163. # -------------------------- Auxiliary programs --------------------------- #
  164.  
  165. ccf32.tr: $(MAKEFILE) makefile
  166.     echo $(GENOPT) /I$(INCDIR) -DCHECK_INTERRUPTS -D_Windows -D__WIN32__ > ccf32.tr
  167.  
  168. $(GENARCH_XE): genarch.c $(stdpre_h) $(iref_h) ccf32.tr
  169.     $(CCAUX_SETUP)
  170.     $(CCAUX) @ccf32.tr genarch.c $(CCAUX_TAIL)
  171.  
  172. # -------------------------------- Library -------------------------------- #
  173.  
  174. # See wincom.mak
  175.  
  176. # ----------------------------- Main program ------------------------------ #
  177.  
  178. LIBCTR=libc32.tr
  179.  
  180. $(LIBCTR): $(MAKEFILE) $(ECHOGS_XE)
  181.         echogs -w $(LIBCTR) $(LIBDIR)\shell32.lib
  182.         echogs -a $(LIBCTR) $(LIBDIR)\comdlg32.lib
  183.         echogs -a $(LIBCTR) $(LIBDIR)\gdi32.lib
  184.         echogs -a $(LIBCTR) $(LIBDIR)\user32.lib
  185.         echogs -a $(LIBCTR) $(LIBDIR)\winspool.lib
  186.  
  187. !if $(MAKEDLL)
  188. # The graphical small EXE loader
  189. $(GS_XE): $(GSDLL).dll  $(DWOBJ) $(GSCONSOLE).exe
  190.     echo /SUBSYSTEM:WINDOWS > gswin32.rsp
  191.     echo /DEF:dwmain32.def /OUT:$(GS_XE) >> gswin32.rsp
  192.         $(LINK) $(LCT) @gswin32.rsp $(DWOBJ) @$(LIBCTR) $(GS).res
  193.     -del gswin32.rsp
  194.  
  195. # The console mode small EXE loader
  196. $(GSCONSOLE).exe: $(OBJC) $(GS).res dw32c.def
  197.     echo /SUBSYSTEM:CONSOLE > gswin32.rsp
  198.     echo  /DEF:dw32c.def /OUT:$(GSCONSOLE).exe >> gswin32.rsp
  199.     $(LINK_SETUP)
  200.         $(LINK) $(LCT) @gswin32.rsp $(OBJC) @$(LIBCTR) $(GS).res
  201.     -del gswin32.rsp
  202.  
  203. # The big DLL
  204. $(GSDLL).dll: $(GS_ALL) $(DEVS_ALL) gsdll.$(OBJ) $(GSDLL).res
  205.     echo /DLL /DEF:gsdll32.def /OUT:$(GSDLL).dll > gswin32.rsp
  206.     $(LINK_SETUP)
  207.         $(LINK) $(LCT) @gswin32.rsp gsdll @$(ld_tr) $(INTASM) @lib.tr @$(LIBCTR) $(GSDLL).res
  208.     -del gswin32.rsp
  209.  
  210. !else
  211. # The big graphical EXE
  212. $(GS_XE):   $(GSCONSOLE).exe $(GS_ALL) $(DEVS_ALL) gsdll.$(OBJ) $(DWOBJNO) $(GS).res dwmain32.def
  213.     copy $(ld_tr) gswin32.tr
  214.     echo dwnodll.obj >> gswin32.tr
  215.     echo dwimg.obj >> gswin32.tr
  216.     echo dwmain.obj >> gswin32.tr
  217.     echo dwtext.obj >> gswin32.tr
  218.     echo /DEF:dwmain32.def /OUT:$(GS_XE) > gswin32.rsp
  219.     $(LINK_SETUP)
  220.         $(LINK) $(LCT) @gswin32.rsp gsdll @gswin32.tr @$(LIBCTR) $(INTASM) @lib.tr $(GSDLL).res
  221.     -del gswin32.tr
  222.     -del gswin32.rsp
  223.  
  224. # The big console mode EXE
  225. $(GSCONSOLE).exe:  $(GS_ALL) $(DEVS_ALL) gsdll.$(OBJ) $(OBJCNO) $(GS).res dw32c.def
  226.     copy $(ld_tr) gswin32c.tr
  227.     echo dwnodllc.obj >> gswin32c.tr
  228.     echo dwmainc.obj >> gswin32c.tr
  229.     echo  /SUBSYSTEM:CONSOLE > gswin32.rsp
  230.     echo  /DEF:dw32c.def /OUT:$(GSCONSOLE).exe  >> gswin32.rsp
  231.     $(LINK_SETUP)
  232.         $(LINK) $(LCT) @gswin32.rsp gsdll @gswin32c.tr @$(LIBCTR) $(INTASM) @lib.tr $(GS).res
  233.     -del gswin32.rsp
  234.     -del gswin32c.tr
  235. !endif
  236.  
  237. # end of msvccom.mak
  238.